import random

# random的生成可重复
seed = random.getstate()
print(seed)
b = 0
while b < 3:
    a = random.randint(1, 10)
    print("本次生成的数字是" + str(a) + "\n")
    b += 1
random.setstate(seed)
b = 0
while b < 3:
    a = random.randint(1, 10)
    print("本次生成的数字是" + str(a) + "\n")
    b += 1
